const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/1DdEPcym3uxNdb.js","assets/DrFvzlh8agutd.js","assets/MpnPZlTSagutd.js","assets/9ND1FmV62IPdvA.css","assets/ed_a_3RY1LONdi.css","assets/BHS1Xkmc2CKrpJ.js","assets/B3kwDvpE2Xyf8y.js","assets/Nc0jDSlw1t8dnT.js","assets/2AZ41aXe85ygF.js","assets/BfQegiIr3PfrX1.js","assets/DQa6Go684zgWvW.css","assets/DY_D5Q_I2Xyf8y.js","assets/Drdc3h_L3J5nVB.css","assets/DnwlHoCT3J5nVB.css","assets/DZFz6IIX1esOcA.js","assets/DnkCof3m18pg8p.js","assets/CNvcbrnqc68oV.js","assets/JLTbM6jQPQMM7.js","assets/BPirqa3s3yM15e.js","assets/IbEnSNbQjuqxK.js","assets/CRB7nLEs3hcpv4.js","assets/Ba8fE4Bu4swc5U.js","assets/f1CpmkqKfT5pU.js","assets/CwAUA1OU17ghgo.js","assets/CJmxFp2y1NeHlk.css","assets/CIzRJKOzcMCzN.js","assets/CumuWVCo1E6jjF.js","assets/CCizP58mJRaMq.css","assets/B7tZpU_a2aKG0E.js","assets/CsRaQOzJagutd.js","assets/sf48gIWk3aD96J.js"])))=>i.map(i=>d[i]);
import{_ as c}from"./MpnPZlTSagutd.js";import{d as S,p as D,k as n,bf as L,i as O,N as P,O as V,s as _,B as s,b as a,o as e,e as k,u as t,F as u,ap as B,f as I,c as l,Q as p,aj as b}from"./DrFvzlh8agutd.js";import{_ as T}from"./B3kwDvpE2Xyf8y.js";import"./Nc0jDSlw1t8dnT.js";import"./2AZ41aXe85ygF.js";import"./BfQegiIr3PfrX1.js";import"./DY_D5Q_I2Xyf8y.js";const w={class:"app-body"},C={key:0,class:"app-body-header"},Q=S({__name:"app-body",setup(N){const y=p(()=>c(()=>import("./1DdEPcym3uxNdb.js"),__vite__mapDeps([0,1,2,3,4]))),h=p(()=>c(()=>import("./BHS1Xkmc2CKrpJ.js").then(d=>d.b),__vite__mapDeps([5,2,1,3,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),g=p(()=>c(()=>import("./CIzRJKOzcMCzN.js"),__vite__mapDeps([25,1,2,3,15,16,26,17,27]))),m=p(()=>c(()=>import("./B7tZpU_a2aKG0E.js"),__vite__mapDeps([28,1,2,3,29,14,30,9,6,7,8,10,11,12,13]))),E=D("body"),o=n([]),i=n(0),r=n();function A(){if(_.workspace?.ready===!0){const d=[...s.listSelected??[]];E("selected",JSON.stringify(d)),s.listSelected?.length===0?o.value=b.value:o.value=b.value.filter(v=>s.listSelected?.includes(v._id)),i.value=o.value.length}else o.value=[],i.value=0;r.value&&(r.value.scrollTop=0)}const f=L(A,{delay:O.list.throttle});return P(f.dispose),V(()=>[_.workspace?.ready,...s.listSelected??[],...s.filter??[]],()=>f()),(d,v)=>(e(),a("div",w,[t(_).workspace?.ready?(e(),a(u,{key:0},[t(B)?k("",!0):(e(),a("div",C,[I(T)])),t(s).appMode==="pay"?(e(),a(u,{key:1},[t(s).listSelected?.length===1?(e(),l(t(g),{key:0,id:t(s).listSelected[0]},null,8,["id"])):(e(),a("div",{key:1,ref_key:"body",ref:r,class:"app-body-body"},[i.value<1?(e(),l(t(m),{key:0})):(e(),l(t(y),{key:1,items:o.value},null,8,["items"]))],512))],64)):(e(),a(u,{key:2},[t(s).listSelected?.length===1?(e(),l(t(h),{key:0,id:t(s).listSelected[0]},null,8,["id"])):(e(),a("div",{key:1,ref_key:"body",ref:r,class:"app-body-body"},[i.value<1?(e(),l(t(m),{key:0})):(e(),l(t(y),{key:1,items:o.value},null,8,["items"]))],512))],64))],64)):k("",!0)]))}});export{Q as default};